package com.cool.collect.swaputils;

import com.cool.collect.swaputils.annotation.IgnoreSwap;
import lombok.Data;

/**
 * @Author: xiemiao
 * @CreateTime: 2023-05-18  10:00
 * @Description: TODO
 * @Version: 1.0
 */
@Data
public class Contract {
    private Long sId;
    @IgnoreSwap
    private String sCreator;
    @IgnoreSwap
    private Integer sVersion;

    private String sName;

    public Contract(Long sId, String sCreator, Integer sVersion, String sName) {
        this.sId = sId;
        this.sCreator = sCreator;
        this.sVersion = sVersion;
        this.sName = sName;
    }

    @Override
    public String toString() {
        return "Contract{" +
                "sId=" + sId +
                ", sCreator='" + sCreator + '\'' +
                ", sVersion=" + sVersion +
                ", sName='" + sName + '\'' +
                '}';
    }
}
